// 7.5%一等奖  14.5%二等奖  79%三等奖
// 0      75        220        1000
// -------[]---------[]------------
// startwith endbefore
let borderStart = 0;
let borderEnd = 1000;
let cursor1=75;
let cursor2=220;
for (let i = 1; i <= 10; i++) {
    let target = Math.floor(Math.random() * (borderEnd - borderStart));
    if(i==10){

    // 精品池
    // 7.5%一等奖     92.5%二等奖  
    // 0      75           1000
    // -------------------------
        if (target<cursor1){
    console.log("次数："+i+"随机值"+target+"。游标值"+cursor1+","+cursor2+"。获得一等奖!!!保底");
        }else {
    console.log("次数："+i+"随机值"+target+"。游标值"+cursor1+","+cursor2+"。获得二等奖!保底");}
        continue;
    }
    
  
    if (target<cursor1){
        console.log("次数："+i+"随机值"+target+"。游标值"+cursor1+","+cursor2+"。获得一等奖!!!");
    }else if (target<cursor2){
        console.log("次数："+i+"随机值"+target+"。游标值"+cursor1+","+cursor2+"。获得二等奖!");
    }else{
        console.log("次数："+i+"随机值"+target+"。游标值"+cursor1+","+cursor2+"。获得三等奖");
    }
       
}

   
